<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>HTML | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../html/a-标签.html" />
    
    
    <link rel="prev" href="../index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.1"
        data-chapter-title="HTML"
        data-filepath="html/html的基本结构和内容.md"
        data-basepath=".."
        data-revision="Wed Apr 18 2018 23:41:29 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html.html">
            
            <span><b>1.</b> HTML</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.1" data-path="html/html的基本结构和内容.html">
            
                
                    <a href="../html/html的基本结构和内容.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="html/a-标签.html">
            
                
                    <a href="../html/a-标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a-标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="html/img.html">
            
                
                    <a href="../html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        img-标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="html/biaoge.html">
            
                
                    <a href="../html/biaoge.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        table-表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="html/列表与表单.html">
            
                
                    <a href="../html/列表与表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表与表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="html/音频和视频-标签.html">
            
                
                    <a href="../html/音频和视频-标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        音频与视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="html/iframe内嵌框架.html">
            
                
                    <a href="../html/iframe内嵌框架.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS.html">
            
            <span><b>2.</b> CSS</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="css/CSS语法.html">
            
                
                    <a href="../css/CSS语法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS基本语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="css/选择器.html">
            
                
                    <a href="../css/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="css/伪类.html">
            
                
                    <a href="../css/伪类.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        伪类
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="css/盒子模型.html">
            
                
                    <a href="../css/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="css/字体.html">
            
                
                    <a href="../css/字体.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="css/行高.html">
            
                
                    <a href="../css/行高.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        行高
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <p><img src="../img/123.png" alt="&#x56FE;&#x7247;"></p>
<h1 id="welcome-to-use-my-xtnotebook">Welcome to use My XT-Notebook</h1>
<h2 id="html&#x7684;&#x57FA;&#x672C;&#x7ED3;&#x6784;&#x548C;&#x5185;&#x5BB9;&#xFF1A;">HTML&#x7684;&#x57FA;&#x672C;&#x7ED3;&#x6784;&#x548C;&#x5185;&#x5BB9;&#xFF1A;</h2>
<h3 id="1html&#x57FA;&#x672C;&#x7ED3;&#x6784;">1.HTML&#x57FA;&#x672C;&#x7ED3;&#x6784;</h3>
<ul>
<li><code>&lt;!DOCTYPE html&gt;</code> &#x58F0;&#x660E;&#x6587;&#x6863;&#x7C7B;&#x578B;</li>
<li><code>&lt;html&gt;</code> &#x6574;&#x4E2A;html&#x6587;&#x4EF6;&#x7684;&#x76D2;&#x5B50;</li>
<li><code>&lt;head&gt;</code> &#x4E3A;&#x4E86;&#x88C5;&#x8F7D;&#x63CF;&#x8FF0;&#x6027;&#x4FE1;&#x606F;&#x7684;&#x9875;&#x9762;&#x5934;&#x90E8;</li>
<li><code>&lt;body&gt;</code> &#x6574;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x4E3B;&#x4F53;</li>
</ul>
<pre><code class="lang-HTML"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-comment">&lt;!-- document type &#x58F0;&#x660E;&#x6587;&#x6863;&#x7C7B;&#x578B; &#x8BA9;&#x6D4F;&#x89C8;&#x5668;&#x77E5;&#x9053;&#x4EE5;html5&#x7684;&#x65B9;&#x5F0F;&#x89E3;&#x8BFB;&#x6587;&#x4EF6;--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- html hyper text mark language &#x8D85;&#x6587;&#x672C;&#x6807;&#x8BB0;&#x8BED;&#x8A00; --&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x4EE5;&#x6807;&#x7B7E;&#x5BF9;&#x7684;&#x5F62;&#x5F0F;&#x4E66;&#x5199; --&gt;</span>

    <span class="hljs-comment">&lt;!--&#x6CE8;&#x91CA;&#xFF1A;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x9875;&#x9762;&#x7684;&#x4EFB;&#x4F55;&#x529F;&#x80FD;&#xFF0C;&#x4EC5;&#x4EC5;&#x63D0;&#x4F9B;&#x63D0;&#x793A;&#x5F00;&#x53D1;&#x8005;&#x7684;&#x4F5C;&#x7528; &#x5FEB;&#x6377;&#x952E;&#xFF1A;crtl+/ --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-comment">&lt;!-- &#x9875;&#x9762;&#x5934;&#x90E8;&#xFF1A;&#x88C5;&#x8F7D;&#x63CF;&#x8FF0;&#x6027;&#x4FE1;&#x606F;&#xFF1A;&#x5173;&#x952E;&#x5B57;&#x3001;&#x63CF;&#x8FF0;&#x3001;&#x7F16;&#x7801;&#x65B9;&#x5F0F;&#x3001;&#x6807;&#x9898;--&gt;</span>
        <span class="hljs-comment">&lt;!-- head&#x91CC;&#x9762;&#x7684;&#x5185;&#x5BB9;&#x4E0D;&#x4F1A;&#x5448;&#x73B0;&#x5728;&#x9875;&#x9762;&#x4E0A; --&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x7F16;&#x7801;&#x65B9;&#x5F0F; utf-8 GBK2312 --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;utf-8&quot;</span> /&gt;</span>
        <span class="hljs-comment">&lt;!-- &#x6807;&#x9898; &#x6D4F;&#x89C8;&#x5668;&#x7684;&#x6807;&#x7B7E;&#x4E0A;&#x663E;&#x793A;&#x7684;&#x5185;&#x5BB9;--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span>hello world<span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x9875;&#x9762;&#x4E3B;&#x4F53;--&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        hello world&#xFF01;&#xFF01;&#xFF01;
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h3 id="2html5&#x7684;&#x8BED;&#x4E49;&#x5316;">2.html5&#x7684;&#x8BED;&#x4E49;&#x5316;</h3>
<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;UTF-8&quot;&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;!-- html5 &#x8BED;&#x4E49;&#x5316; --&gt;
        &lt;!--
            1.&#x4E3A;&#x4E86;&#x5F00;&#x53D1;&#x8005;&#x66F4;&#x597D;&#x7684;&#x9605;&#x8BFB;&#x4EE3;&#x7801;&#xFF1B;
            2.&#x6709;&#x90E8;&#x5206;&#x8BED;&#x4E49;&#x5316;&#x6807;&#x7B7E;&#x5E76;&#x6CA1;&#x6709;&#x7279;&#x6B8A;&#x6548;&#x679C;&#xFF1B;
            3.html5&#x5141;&#x8BB8;&#x6211;&#x4EEC;&#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x7B7E;&#xFF1B;
            4.seo&#x641C;&#x7D22;&#x5F15;&#x64CE;&#xFF0C;&#x4F18;&#x5316;&#xFF1B;
            5.&#x9605;&#x8BFB;&#x5668;&#x4F7F;&#x7528;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x901A;&#x8FC7;&#x8BED;&#x4E49;&#x5316;&#x6807;&#x7B7E;&#x53BB;&#x8BC6;&#x522B;&#x6587;&#x7AE0;&#x7684;&#x5185;&#x5BB9;
        --&gt;
        &lt;!--
            &#x5FEB;&#x6377;&#x952E;
                1.&#x6807;&#x7B7E;&#x5BF9;&#xFF1A;&#x8F93;&#x5165;&#x5B8C;&#x6807;&#x7B7E;&#x4E4B;&#x540E;&#x6309;&#x4E0B;tab&#x952E;
        --&gt;
        &lt;header&gt;&#x5934;&#x90E8;&lt;/header&gt;
        &lt;footer&gt;&#x5E95;&#x90E8;&lt;/footer&gt;
        &lt;article&gt;&#x6587;&#x7AE0;&lt;/article&gt;

        &lt;!-- &#x5B98;&#x65B9;&#x6807;&#x7B7E; &#x81EA;&#x5E26;&#x6837;&#x5F0F; --&gt;
        &lt;h1&gt;&#x6807;&#x9898;1&lt;/h1&gt;
        &lt;h2&gt;&#x6807;&#x9898;2&lt;/h2&gt;
        &lt;h3&gt;&#x6807;&#x9898;3&lt;/h3&gt;
        &lt;h4&gt;&#x6807;&#x9898;4&lt;/h4&gt;
        &lt;h5&gt;&#x6807;&#x9898;5&lt;/h5&gt;
        &lt;h6&gt;&#x6807;&#x9898;6&lt;/h6&gt;

        &lt;!-- &#x6BB5;&#x843D; --&gt;
        &lt;p&gt;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;&#xFF0C;&#x7528;p&#x6807;&#x7B7E;&#x88C5;&#x7740;&#xFF01;&#xFF01;&lt;/p&gt;

        &lt;!-- &#x5F3A;&#x8C03; strong&#x52A0;&#x7C97; em&#x659C;&#x4F53;  --&gt;
        &lt;strong&gt;&#x5F3A;&#x8C03;&#x8BED;&#x6C14;&lt;/strong&gt;
        &lt;em&gt;&#x5F3A;&#x8C03;&#x8BED;&#x6C14;&lt;/em&gt;

        &lt;!-- &#x6807;&#x7B7E;&#x5D4C;&#x5957; 
            &#x5757;&#x7EA7;&#x5143;&#x7D20;&#xFF1A;p&#x3001;h1~h6&#x3001;header&#x3001;div &#x5B83;&#x4EEC;&#x4F1A;&#x81EA;&#x5DF1;&#x5360;&#x4E00;&#x884C;&#xFF0C;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5BBD;&#x5EA6;&#x548C;&#x9AD8;&#x5EA6;
            &#x884C;&#x5185;&#x5143;&#x7D20;&#xFF1A;strong&#x3001;em&#x3001;span &#x5B83;&#x4EEC;&#x5360;&#x4F4D;&#x7F6E;&#x6839;&#x636E;&#x81EA;&#x8EAB;&#x5927;&#x5C0F;&#x51B3;&#x5B9A;&#xFF0C;&#x4E0D;&#x53EF;&#x8BBE;&#x7F6E;&#x5BBD;&#x9AD8;

            &#x5757;&#x7EA7;&#x5143;&#x7D20;&#x5305;&#x88F9;&#x7740;&#x884C;&#x5185;&#x5143;&#x7D20;

            span&#x6807;&#x7B7E;&#xFF1A;&#x65E0;&#x8272;&#x65E0;&#x5473;&#x4E94;&#x6DFB;&#x52A0;&#x7684;&#x884C;&#x5185;&#x5143;&#x7D20;&#xFF0C;&#x8981;&#x5355;&#x72EC;&#x4F7F;&#x7528;&#x6837;&#x5F0F;&#x7684;&#x65F6;&#x5019;&#x4F7F;&#x7528;
        --&gt;
        &lt;p&gt;&#x4ECA;&#x5929;&#x7B2C;&#x4E00;&#x6B21;&#x4E0A;&lt;span style=&quot;color:red;font-size:20px;&quot;&gt;HTML&lt;/span&gt;&#x7684;&#x8BFE;&#xFF0C;&lt;strong&gt;&#x597D;&#x56F0;&#x554A;&lt;/strong&gt;&lt;/p&gt;
        &lt;span&gt;&#x6D4B;&#x8BD5;&#x884C;&#x5185;&#x5143;&#x7D20;&#x5305;&#x88F9;&lt;p&gt;&#x5757;&#x7EA7;&#x5143;&#x7D20;&lt;/p&gt;&lt;/span&gt;

        &lt;!-- &#x5E26;&#x683C;&#x5F0F;&#x7684;&#x6807;&#x7B7E; --&gt;
        &lt;b&gt;&#x52A0;&#x7C97;&lt;/b&gt;
        &lt;i&gt;&#x659C;&#x4F53;&lt;/i&gt;
        &lt;u&gt;&#x4E0B;&#x5212;&#x7EBF;&lt;/u&gt;
        &lt;q&gt;&#x5F15;&#x7528;&lt;/q&gt;
        2&lt;sup&gt;2&lt;/sup&gt;
        H&lt;sub&gt;2&lt;/sub&gt;O

    &lt;/body&gt;
&lt;/html&gt;
</code></pre><p>&#x6CE8;&#xFF1A;&#x6807;&#x7B7E;&#x7279;&#x70B9;</p>
<blockquote>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x6807;&#x7B7E;&#x8981;<strong>&#x6210;&#x5BF9;</strong>&#x4E66;&#x5199;&#xFF0C;&#x5E76;&#x4E14;&#x5C06;&#x6587;&#x672C;&#x5185;&#x5BB9;&#x5199;&#x5728;&#x6807;&#x7B7E;&#x5BF9;&#x91CC;&#x9762;</p>
</blockquote>
<p><a href="http://html5book.bluej.cn/_book/index.html" target="_blank">&#x84DD;&#x666F;&#x7535;&#x5B50;&#x4E66;</a></p>
<p>&#x6CE8;&#xFF1A;gitbook build &#x6253;&#x5305;&#x7535;&#x5B50;&#x4E66;</p>
<p>gitbook serve &#x5F00;&#x542F;&#x672C;&#x5730;&#x670D;&#x52A1;&#xFF0C;&#x8FB9;&#x5199;&#x8FB9;&#x770B;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../index.html" class="navigation navigation-prev " aria-label="Previous page: Introduction"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../html/a-标签.html" class="navigation navigation-next " aria-label="Next page: a-标签"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
